/**
 * Created by walkman on 2017/6/25.
 */
'user strict';

(function () {
  angular.module('WfbPlatformApp').controller('TeamLevelController',
    ['$rootScope', '$scope', '$http', '$compile', 'http', '$q', 'teamService',
      function ($rootScope, $scope, $http, $compile, http, $q, teamService) {

        $scope.teamLevel = {};

        $scope.$on('$viewContentLoaded', function () {
          // initialize core components
        });
        $scope.$on('$includeContentLoaded', function () {

        });

        $scope.getTeamLevel = function () {

          var promise = teamService.getTeamLevel({});
          promise.then(function success(result) {
            //成功回调
            $scope.teamLevel = angular.copy(result.data);
          }, function error(error) {//错误回调
            // console.log(JSON.stringify(error));
          });
        };
        $scope.getTeamLevel();
      }]);
})();


